<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/global/global-head.jsp" %>
<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>吉车惠后台管理系统</title>
	<%@include file="/global/global-other.jsp" %>
<script type="text/javascript">
	$(function() {
		submitForm = function($dialog,$grid){
			$('#an_car_form').form('submit',{
				url:'${ctx}/bn/oilRecharge/update',
				queryParams:{_m:'exec'},
				onSubmit:function(){
					//return $(this).form('enableValidation').form('validate');
					if($(this).form('enableValidation').form('validate')){
						return true;
					}else{
						return false;
					}
				},
				success:function(data){
					var json =  eval("(" +data+ ")");
						if(statusMsg(json)){
							$.messager.alert("提示","保存成功！","info",function(){
								$dialog.dialog('destroy');
								$grid.datagrid('reload');
							});
						}
				}
			});
		};
	});
</script>
	</head>
<body>
<div class="form-box">
	<div class="form-body">
		<form role="form" name="an_car_form" id="an_car_form" class="easyui-form form form-horizontal" data-options="novalidate:true" method="post">
			<div class="seg-title">
				<div class="seg-title-box">
					<ul>
						<li class="seg-title-box-icon" ><img src="${ctx }/assets/images/communication.gif"/></li>
						<li class="seg-title-box-text">基本信息</li>
						<input id="rechargeKindId" name="rechargeKindId" type="hidden" value="${bnOilRechargeKindEntity.rechargeKindId}">
					</ul>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">
					<p class="label-txt">充值种类名称：</p>
					<p class="star">*</p>
				</label>
				<div class="col-sm-3">
					<input type="text" id="rechargeKindName" name="rechargeKindName" value = "${bnOilRechargeKindEntity.rechargeKindName}" class="form-control easyui-validatebox" style="width:100%;height:34px;line-height:34px;" required="required" validType="length[1,50]">
				</div>
				<label class="col-sm-2 control-label">
					<p class="label-txt">充值方式：</p>
					<p class="star">*</p>
				</label>
				<div class="col-sm-3">
					<input  id="rechargeWay" name="rechargeWay" value = "${bnOilRechargeKindEntity.rechargeWay}" class="form-control easyui-combobox" style="width:100%;height:34px;line-height:34px;"  required="true" validType="length[1,50]" data-options="
                    valueField: 'label',
                    textField: 'value',
                    data: [{
                        label: '1',
                        value: '优惠快充'
                    },{
                        label: '2',
                        value: '特惠套餐'
                    }],editable:false">
				</div>

			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">
					<p class="label-txt">实际金额：</p>
					<p class="star">*</p>
				</label>
				<div class="col-sm-3">
					<input type="text" id="practicalMoney" name="practicalMoney" value = "${bnOilRechargeKindEntity.practicalMoney}" class="form-control easyui-validatebox" style="width:100%;height:34px;line-height:34px;" required="required" validType="checkFloat">
				</div>
				<label class="col-sm-2 control-label">
					<p class="label-txt">优惠金额：</p>
					<p class="star">*</p>
				</label>
				<div class="col-sm-3">
					<input type="text" id="privilegeMoney" name="privilegeMoney" value = "${bnOilRechargeKindEntity.privilegeMoney}" class="form-control easyui-validatebox" style="width:100%;height:34px;line-height:34px;" required="required" validType="checkFloat">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">
					<p class="label-txt">支付金额：</p>
					<p class="star">*</p>
				</label>
				<div class="col-sm-3">
					<input type="text" id="payMoney" name="payMoney"  value = "${bnOilRechargeKindEntity.payMoney}"  class="form-control easyui-validatebox" style="width:100%;height:34px;line-height:34px;" required="required" validType="checkFloat">
				</div>
				<label class="col-sm-2 control-label">
					<p class="label-txt">返现月数：</p>
					<p class="star">*</p>
				</label>
				<div class="col-sm-3">
					<input type="text" id="backMouth" name="backMouth"  value = "${bnOilRechargeKindEntity.backMouth}" class="form-control easyui-validatebox" style="width:100%;height:34px;line-height:34px;" required="required" validType="length[1,7]">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">
					<p class="label-txt">返现金额：</p>
					<p class="star">*</p>
				</label>
				<div class="col-sm-3">
					<input type="text" id="backMoney" name="backMoney" value = "${bnOilRechargeKindEntity.backMoney}" class="form-control easyui-validatebox" style="width:100%;height:34px;line-height:34px;" required="required" validType="checkFloat">
				</div>
			</div>
		</form>
	</div>
</div>
</body>
</html>